package cn.com.bsoft.cloud.entity.cloud;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

public class PrescriptionMessSec {

    private String pharmacyCode;//分中心代码
    private String pharmacyName;//分中心名称
    private String hospitalCode;//医院编码
    private String hospitalName;//医院名称
    private String prescriptionCode;//处方id
    private String patientName;//患者姓名
    private String identity;//患者身份证号
    private String sex;//患者性别
    private String telphone;//患者电话
    private String cardNum;//患者卡号
    private String paymentStatus;//是否支付1：已支付  0：未支付
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp extractingDate;//开单日期
    private List<PrescriptionDetail> cfmess;
    private BigDecimal totalMoney;
    private Integer detailCount;
    private String deliveryStatus;//流程状态（待配药（0），发药中（1），到达站点（2）,作废（3）



    public String getPharmacyCode() {
        return pharmacyCode;
    }

    public void setPharmacyCode(String pharmacyCode) {
        this.pharmacyCode = pharmacyCode;
    }

    public String getPharmacyName() {
        return pharmacyName;
    }

    public void setPharmacyName(String pharmacyName) {
        this.pharmacyName = pharmacyName;
    }

    public String getHospitalCode() {
        return hospitalCode;
    }

    public void setHospitalCode(String hospitalCode) {
        this.hospitalCode = hospitalCode;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getPrescriptionCode() {
        return prescriptionCode;
    }

    public void setPrescriptionCode(String prescriptionCode) {
        this.prescriptionCode = prescriptionCode;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public Timestamp getExtractingDate() {
        return extractingDate;
    }

    public void setExtractingDate(Timestamp extractingDate) {
        this.extractingDate = extractingDate;
    }

    public List<PrescriptionDetail> getCfmess() {
        return cfmess;
    }

    public void setCfmess(List<PrescriptionDetail> cfmess) {
        this.cfmess = cfmess;
    }

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Integer getDetailCount() {
        return detailCount;
    }

    public void setDetailCount(Integer detailCount) {
        this.detailCount = detailCount;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getDeliveryStatus() {
        return deliveryStatus;
    }

    public void setDeliveryStatus(String deliveryStatus) {
        this.deliveryStatus = deliveryStatus;
    }

    public String getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(String paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    @Override
    public String toString() {
        return "PrescriptionMessSec{" +
                "pharmacyCode='" + pharmacyCode + '\'' +
                ", pharmacyName='" + pharmacyName + '\'' +
                ", hospitalCode='" + hospitalCode + '\'' +
                ", hospitalName='" + hospitalName + '\'' +
                ", prescriptionCode='" + prescriptionCode + '\'' +
                ", patientName='" + patientName + '\'' +
                ", identity='" + identity + '\'' +
                ", sex='" + sex + '\'' +
                ", telphone='" + telphone + '\'' +
                ", cardNum='" + cardNum + '\'' +
                ", paymentStatus='" + paymentStatus + '\'' +
                ", extractingDate=" + extractingDate +
                ", cfmess=" + cfmess +
                ", totalMoney=" + totalMoney +
                ", detailCount=" + detailCount +
                ", deliveryStatus='" + deliveryStatus + '\'' +
                '}';
    }
}
